From: Florian Müllner Date: Wed, 9 Aug 2023 14:24:07 +0000 (+0200) Subject: screenshot: Export showScreen*UI() functions X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~337^2~1^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d6cfc13c3f5c59a1f29a6dbcc393d8094558c171;p=gnome-shell.git screenshot: Export showScreen*UI() functions showScreenshotUI() is needed by the system action, and showScreenRecordingUI() is conceptually so similar that it would be odd to export one and not the other. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6885 Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 48a355d2c..852ec94e7 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -2269,7 +2269,7 @@ async function captureScreenshot(texture, geometry, scale, cursor) { /** * Shows the screenshot UI. */ -function showScreenshotUI() { +export function showScreenshotUI() { Main.screenshotUI.open().catch(err => { logError(err, 'Error opening the screenshot UI'); }); @@ -2278,7 +2278,7 @@ function showScreenshotUI() { /** * Shows the screen recording UI. */ -function showScreenRecordingUI() { +export function showScreenRecordingUI() { Main.screenshotUI.open(UIMode.SCREENCAST).catch(err => { logError(err, 'Error opening the screenshot UI'); });